package protocol.registration;

import java.io.DataInputStream;
import java.io.IOException;

public class RegistrationResponse {

	private String m_ipServer;
	private int m_port;
	private int m_ID;
	
	public RegistrationResponse(){}
	
	public int getID()
	{
		return m_ID;
	}
	
	public int getPort()
	{
		return m_port;
	}
	
	public String getIpServer()
	{
		return m_ipServer;
	}
	
	//INPUT : ID IPServer port
	public void read(DataInputStream dis) throws IOException 
	{
		m_ID = dis.readInt();
		m_ipServer = dis.readUTF();
		m_port = dis.readInt();
	}
}
